#!/user/bin/env python3
# -*- coding: utf-8 -*-
from PIL import Image,ImageDraw

# 1.创建空图
img1 = Image.new('RGB',(600,600),(255,255,255))

# 2.创建画笔
pen = ImageDraw.Draw(img1)

# 3.画颜色块
# point(坐标,颜色)
pen.point((100,100),(255,0,0))
pen.point((200,100),(0,255,0))
# circle(坐标,半径,颜色)
pen.circle((300,300),radius=20,fill=(0,0,255),outline=(0,0,0),width=5)
img1.show()

